<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglib.jsp" %>
<head>
</head>
<!-- quick begin -->
<br><div class="subtable nav" style="width: 98%">
<a href="index.php">Discuz! Board</a> &raquo; 会员登录
</div><br>
<!-- end #quick -->
<!-- register info begin -->
<s:form action="/user/login.do" method="post" id="loginForm" class="cmxform" onsubmit="return Validator.Validate(this,3)">
    <div class="spaceborder" style="width: 98%">
        <table cellspacing="0" cellpadding="4" width="100%" align="center">
            <tr class="header">
                <td colspan="2">会员登录</td>
            </tr>
            <tr>
                <td class="altbg1"><span class="bold">用户名: *</span>
                </td>
                <td class="altbg2">
                    <s:text name="user.username" class="t {dataType:Require;msg:用户名必填1}" id="username"/>
                    <s:errors field="user.username"/>
                    <span style="padding-left:8px;"><a href="${ctx}/user/register.do?registerForm"
                                                       title="注册论坛用户">没有注册?</a></span>
                </td>
            </tr>
             <tr>
                <td class="altbg1"><span class="bold">密 码: *</span>
                </td>
                <td class="altbg2">
                    <s:password name="user.password" class="t {required:true,minLength:4,maxLength:16}" id="password"/>
                    <s:errors field="user.password"/>
                    <span style="padding-left:8px;"><a href="lostpassword.html" title="忘记了论坛密码">忘记了密码?</a></span>
                    </td>
            </tr>
             <tr>
                <td class="altbg1"><span class="bold">验证码: *</span>
                </td>
                <td class="altbg2">
                    <s:text name="validateCode" class="t {required:true,minLength:4,maxLength:4}" id="validateCode"
                            size="4" maxlength="4"/>
                <s:errors field="validateCode"/>
                <img src="${ctx}/validateCode" width="60" height="20" alt="验证码信息" style="vertical-align:top;cursor:pointer;"
                                                   onclick="this.src='${ctx}/validateCode'"/>
                 </td>
            </tr>
            <tr>
                <td class="altbg1"><span class="bold">隐身登录: *</span>
                </td>
                <td class="altbg2">
                    <select name="online">
                        <option value="2">正常登录</option>
                        <option value="1">隐身登录</option>
                    </select>
                </td>
            </tr>
             <tr>
                <td class="altbg1"><span class="bold">Cookie 选项: *</span>
                </td>
                <td class="altbg2">
                    <select name="cookie">
                        <option value="0">不保存</option>
                        <option value="1">保存一天</option>
                        <option value="2">保存一月</option>
                        <option value="3">保存一年</option>
                    </select>
                    <span style="padding-left:8px;">请选择你的 Cookie 保存时间，下次访问可以方便</span>输入。
                </td>
            </tr>

            <input type="hidden" name="forward" value="${forward}">

    </table>

    </div>
     <br>
    <div class="option"><div class="submitbutton"><input class="button" type="submit" name="loginsubmit" value="提 &nbsp; 交"></div></div>
    <br>
</s:form>